package ooday04homework;

public class Chick extends Animal{


    Chick(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(name+"鸡在啄米,年龄是："+age+"颜色是："+color);
    }

    void layEggs() {
        System.out.println(name+"鸡在下蛋,年龄是："+age+"颜色是："+color);
    }
}
